<?php
           //项目单入口文件
           define('CON_PATH','protected/Controller/');//控制层路径

           define('VIEW_PATH','protected/View/');//视图层路径

           define('LIB_PATH','protected/lib/'); //核心文件路径



           //获取地址栏访问功能模块的参数值

           $c = empty($_GET['c'])?'index':$_GET['c'];//如果地址栏没有参数则默认去登录页面

           $a = empty($_GET['a'])?'index':$_GET['a'];

           $admin = empty($_GET['admin'])?'home':'admin';



               //载入初始化文件
            include_once (LIB_PATH.'init.php');

             include_once (LIB_PATH.'my_db.php');
             $link =  db_connect('p301');
             include_once (LIB_PATH.'pages.php');

           $where = "id>1 and id <10";

           // getSelect($c,$where,'id desc','10,10')




           //根据地址栏获取到的参数值组装要加载的程序文件路径
   include_once CON_PATH.$admin.'/'.$c.'/'.$a.'.php';
